<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>迅雷产品中心</title>
<meta name="keywords" content="深圳市迅雷网络技术有限公司、迅雷、迅雷网络、迅雷技术、迅雷产品、迅雷软件、迅雷应用、下载、网速、加速、会员、云加速、云计算、CDN">
<meta name="description" content="迅雷始终致力于为全球互联网提供更好的多媒体资源数据传输服务，凭借云加速领域的核心技术，集成了包含下载、游戏、视频、网络加速、CDN应用等多种服务的迅雷产品平台，已经成长为中国覆盖范围最广、用户最多的网络产品平台之一。">
<link rel="stylesheet" href="{{ asset('/home/css/chanpinheader.css') }}">
<link rel="stylesheet" href="{{ asset('/home/css/chanpinstyle.css') }}">
</head>
<body>
  <script type="text/javascript">
    window.habo_aid = "dl_xunlei_com";
  </script>

<!--
  白色：h_white
  黑色：h_black
-->
  <div class="header h_black">
    <div class="nav_box">
      <span class="ic_line" id="h_icline"></span>
      <ul class="nav_list" id="h_navlist">
        <li>
          <a href="/" clickid="cpzxsy">首页</a>
        </li>
        <li>
          <a href="{{ url('/home/vip/index')}}" clickid="cpzxhy" target="_blank">会员</a>
        </li>
        <li>
          <a href="{{ url('/home/vip/game')}}" clickid="cpzxyy" target="_blank">页游</a>
        </li>
        <li>
          <a href="{{ url('/home/product/call') }}" clickid="cpzxkf" target="_blank">客服</a>
        </li>
        <li>
          <a href="http://bbs.xunlei.com/forum.php" clickid="cpzxlt" target="_blank">论坛</a>
        </li>
        <li>
          <a href="http://yangtai.xunlei.com/" clickid="cpzxyt" target="_blank">阳台</a>
        </li>
      </ul>
    </div>
  </div>
 @foreach($pdata as  $value)
    <div class="detail_area" id="detail_area">
      <!-- 电脑软件 -->
    <div class="products_area pc_sw">
     
        <div class="products_wrap">
          <h4>{{$value -> name}}</h4>
          <ul class="products_list clearfix">
          
           @foreach($data as $k => $v)
            @if($value -> id == $v -> pid)
            <li>
                <div class="product_feed png">
                    <div class="img_box">
                        <a href="" target="_blank">
                            <img src="{{ url('/uploads/imgs//') }}/{{$v -> logo}}"  alt="{{$v -> name}}">
                        </a>
                    </div>
                    <h5>
                        <a href="#" target="_blank">
                            {{$v -> name}}
                        </a>
                    </h5>
                    <p class="txt_brief">
                        {{$v -> content}}
                    </p>
                    <div class="download_box">
                        <div class="btn_box" style="display:">
                            <a href="#" target="_blank">
                                <i class="ic_win">
                                </i>
                                下载
                            </a>
                            <p class="txt_time">
                                2016-12-08
                            </p>
                        </div>
                        
                    </div>
                </div>
            </li> 
            @endif
          @endforeach
          </ul>
        </div>
      </div>
    </div>
  @endforeach

<div class="footer" id="footer">
  <div class="foot">
    <div class="follow_box">
      <p class="txt_follow">成为迅雷的粉丝</p>
      <div class="follow_list">
        <a href="javascript:void(0)" class="wechat hide_txt">官方微信
          <span class="code_box"><i class="ic_arr"></i><img src="{{ url('/home/picture/code.jpg') }}" alt="官方微信"></span>
        </a>
        <a target="_blank" href="http://weibo.com/xunleigf?from=myfollow_all&amp;is_all=1" class="sina hide_txt">新浪微博</a>
        <a target="_blank" href="http://bbs.xunlei.com/forum.php" class="forum hide_txt">论坛</a>
        <a target="_blank" href="http://tieba.baidu.com/f?ie=utf-8&amp;kw=迅雷&amp;fr=search" class="post hide_txt">帖吧</a>
      </div>
    </div>
    <p class="main_links">
      <a href="{{ url('/admin/more/xunlei')}}" target="_blank">关于迅雷</a>
      <a href="{{ url('/admin/more/content')}}" target="_blank">联系我们</a>
      <a href="http://hr.xunlei.com/" target="_blank">加入迅雷</a>
      <a href="http://help.xunlei.com/" target="_blank">客户服务</a>
      <a href="http://yangtai.xunlei.com/" target="_blank">迅雷阳台</a>
    </p>
    <p class="links">
      <a href="http://www.xunlei.com/images/zzdx.jpg" target="_blank">增值电信业务粤B2-20050219号</a>
      <span>|</span>
      <a target="_blank" href="http://www.xunlei.com/images/gb.jpg">粤网文[2013]043-043号</a>
      <span>|</span>
      <a target="_blank" href="http://www.xunlei.com/images/yp.jpg">广电节目经营(粤)字第786号-20050219号</a>
      <span>|</span>
      <a target="_blank" href="http://www.xunlei.com/images/cbxkz.jpg">互联网出版(粤)字053号</a>
    </p>
    <p>Copyright ? 2003-2016 XUNLEI.COM All Rights Reserved</p>
  </div>
</div>
<div class="pop_code png big" id="bigCodeBox" style="top: 0;left: 0;display:none;">
  <h3><span class="tname"></span></h3>
  <div class="pop_tab" id="pop_tab">
    <a href="javascript:;" class="cur" data-type="android" style="display:none"><i class="ic_android" data-type="android"></i><span>android</span></a>
    <a href="javascript:;" data-type="ios" style="display:none"><i class="ic_ios"></i><span>IOS下载</span></a>
    <a href="javascript:;" data-type="ipad" style="display:none"><i class="ic_pad"></i><span>iPad</span></a>
    <span class="ic_line" id="p_icline"></span>
  </div>
  <div class="code_box" id="android" style="display:none">
    <img src="{{ url('/home/picture/code.jpg') }}" class="code" alt="二维码">
    <p class="txt_code">手机扫描直接安装</p>
    <p class="txt_info"><span class="version"></span><span class="date"></span><span class="size">15.2MB</span></p>
    <a href="#" class="btn_pc link" target="_blank">仅下载到电脑</a>
  </div>
  <div class="code_box" id="ios" style="display:none;">
    <img src="{{ url('/home/picture/code.jpg') }}" class="code" alt="二维码">
    <p class="txt_code">手机扫描直接安装</p>
    <p class="txt_info"><span class="version"></span><span class="date"></span><span class="size">15.2MB</span></p>
    <a href="#" class="btn_pc link" target="_blank">仅下载到电脑</a>
  </div>
  <div class="code_box" id="ipad" style="display:none;">
    <img src="{{ url('/home/picture/code.jpg') }}" class="code" alt="二维码">
    <p class="txt_code">手机扫描直接安装</p>
    <p class="txt_info"><span class="version"></span><span class="date"></span><span class="size">15.2MB</span></p>
    <a href="#" class="btn_pc link" target="_blank">仅下载到电脑</a>
  </div>
  <a href="javascript:Msgbox.exit();" class="btn_close"></a>
</div>
<div class="pop_code png small" id="smallCodeBox" style="top: 0;left: 0;display:none;">
  <h3><span class="tname"></span><span class="stype"></span>下载</h3>
  <div class="code_box">
    <img src="{{ url('/home/picture/code.jpg') }}" alt="二维码" class="code">
    <p class="txt_code">手机扫描直接安装</p>
    <p class="txt_info"><span class="version">v1.01.20</span><span class="date">2015-10-06</span><span class="size">15.2MB</span></p>
    <a href="#" class="btn_pc link" target="_blank">仅下载到电脑</a>
  </div>
  <a href="javascript:Msgbox.exit();" class="btn_close"></a>
</div>
<script src="{{ asset('/home/js/jquery.js') }}"></script>
<script src="{{ asset('/home/js/gallery.js') }}"></script>
<script>
  (function(){
    var $banner=$("#banner_area");
    if($banner){
      var $bimgs=$banner.find(".banner_wp");
      var resize=function(){
        var w=$(window).width(),
            h=$(window).height();
        $banner.height(h);
        w=w>1200?w:1200;
        if(w/h<1920/1080){
          $bimgs.height(h).css({width:1920/1080*h,margin:-.5*h+"px 0 0 "+-.5*1920/1080*h+"px"});
        }else{
          $bimgs.width(w).css({height:w*1080/1920,margin:-.5*w*1080/1920+"px 0 0 "+-.5*w+"px"});
        }
      }
      window.onresize=resize;
      resize();
    }
    var $hNav=$("#h_navlist").find("a"),
        $hLine=$("#h_icline");
    $hNav.on("mouseenter",function(){
      $hLine.css({display:"block",left:13+$hNav.index(this)*74});
    });
    $("#h_navlist").on("mouseleave",function(){
      $hLine.css({display:"none"});
    });
    popTabInit=function(){
      var $popTab=$("#pop_tab");
        if($popTab){
        var $tabs=function(){
          var $links=$popTab.find("a");
          var as=[];
          for(var i=0;i<$links.length;i++){
            if($links.eq(i).css("display")!="none")
              as.push($links[i])
          }
          return as;
        }();
        $pLine=$("#p_icline");
        var sd;
        switch($tabs.length){
          case 1: {sd=111;break;}
          case 2: {sd=67;break;}
          case 3: {sd=23;break;}
        }
        $pLine.css({left:sd});
        for(var i=0;i<$tabs.length;i++){
          $($tabs[i]).on("click",function(i){
            return function(){
              $pLine.css({left:sd+i*88});
            }
          }(i));
        }
      }
    }
    /*图片预加载*/
    function preloadImages(){
      var arrImage = [];
      var parLen = arguments.length;
      var cur = 0;
      for (var i = 0; i < parLen; i++) {
           arrImage[i] = new Image()
           arrImage[i].onload = function(){
                if(cur == parLen -1){
                     loadFinish();
                }
                cur++;
           }
           arrImage[i].src = arguments[i];
      };
     }
     function loadFinish(){
        $banner.addClass("show");
     }
     
  })()

</script>
<script type="text/javascript">
  $('div.wrapper').on('click','a.btn_wap', function(){
      Msgbox.showDiv('bigCodeBox');
      $('#pop_tab a').hide();
       window.data = {};

       data.android = $(this).data('az');
       data.ios = $(this).data('ios');
       data.ipad = $(this).data('ipad');
       for(var i in data){
         if(data[i]){
           initTpl(i,data[i]);
         }

      }
      popTabInit();
      $('#pop_tab a:visible').eq(0).trigger('click');
      return false;
  })
  $('#pop_tab a').on('click', function(){
     var type = $(this).data('type');
     $('#bigCodeBox div.code_box').hide();
     $('#'+type).show();

     // console.log(data)

     $(this).addClass('cur').siblings('a').removeClass('cur');
     return false;
  })

  $('a.show_code').click(function(){
     var info = $(this).data('info');
     initTplSmall('smallCodeBox',info);
     Msgbox.showDiv('smallCodeBox');
     return false;
  })

  function getUrlParam(parameter,url) {
            url = !url ? location.href : url;
            var reg = /[\#|\?]([^#]*)[\#|\?]?/;
            var result = url.match(reg);
            url = "&" + (!result ? "" : result[1]);
            result = url.match(new RegExp("&" + parameter + "=", "i"));
            // console.log(result)
            return !result ? undefined : url.substr(result.index+1).split("&")[0].split("=")[1];
        }
   var from = getUrlParam('from');

   if(from == 'index'){
       $('#banner_area').hide();
       $('#main_product').hide();
       $('div.wrap').addClass('pad_top');
   } else {
       $('div.wrap').removeClass('pad_top');
       var g = new GALLERY($('div.banner_box li'),$('div.banner_btns a'),5000,0,'cur',function(context,index,flag){
          var header_class  = context.content.eq(index).data('header');
          $('div.header').removeClass('h_black h_white').addClass(header_class);
      });
   }

  function initTpl(type,data){
      // console.log(data['tname']);
      // console.log($('#'+type).find('span.tname').length);

      $('a[data-type='+type+']').show();
      $('#'+type).find('span.version').text(data['version']);
      $('#'+type).find('span.date').text(data['mydate']);
      $('#'+type).find('span.size').text(data['size']);
      $('#'+type).find('a.link').attr('href',data['down']);
      $('#'+type).find('img.code').attr('src',data['code']);
      $('#bigCodeBox').find('span.tname').text(data['tname']);
  }
  function initTplSmall(type,data){
      // console.log($('#'+type).find('a.link').length)
      $('#'+type).find('span.version').text(data['version']);
      $('#'+type).find('span.stype').text(data['stype']);
      $('#'+type).find('span.date').text(data['mydate']);
      $('#'+type).find('span.size').text(data['size']);
      $('#'+type).find('span.tname').text(data['tname']);
      $('#'+type).find('a.link').attr('href',data['link']);
      $('#'+type).find('img.code').attr('src',data['code']);


  }
</script>
<div style="display:none">
  <script type="text/javascript" src="{{ asset('/home/js/xlvip-stat.js') }}"></script>
  <script type="text/javascript" src="{{ asset('/home/js/anal_vip_homepage.js') }}"></script>
  <script type="text/javascript" src="{{ asset('/home/js/pv_min.js') }}"></script>
</div>
</body>
</html>
